package entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Product_Info implements Serializable {

    private static final long serialVersionUID = 7279669406440571764L;
    private Integer product_id;//商品ID
    private String product_code;//商品编码
    private String product_name;//商品名称
    private Integer brand_id;//品牌表的ID
    private Integer one_category_id;//一级分类ID
    private Integer two_category_id;//二级分类ID
    private Integer three_category_id;//三级分类ID
    private double price;//商品销售价格
    private Integer publish_status;//上下架状态：0下架1上架
    private Integer audit_status;//审核状态：0未审核，1已审核
    private double weight;//商品重量
    private String color_type;//商品颜色
    private  Date production_date;//生产日期
    private Integer shelf_life;//商品有效期
    private String descript;//商品描述
    private Date indate;//商品录入时间
    private Date modified_time;//最后修改时间
    private List<Product_Pic_Info> product_pic_infos;//商品所有图片信息
    private List<Warehouse_Product> warehouse_products;// 商品所有型号库存信息
    private Warehouse_Product warehouseProduct;
    private Product_Pic_Info productPicInfo;

    public Product_Pic_Info getProductPicInfo() {
        return productPicInfo;
    }

    public void setProductPicInfo(Product_Pic_Info productPicInfo) {
        this.productPicInfo = productPicInfo;
    }

    public Warehouse_Product getWarehouseProduct() {
        return warehouseProduct;
    }

    public void setWarehouseProduct(Warehouse_Product warehouseProduct) {
        this.warehouseProduct = warehouseProduct;
    }

    private Product_Pic_Info product_Pic_Info;
    public Product_Pic_Info getProduct_Pic_Info() {
        return product_Pic_Info;
    }
    public void setProduct_Pic_Info(Product_Pic_Info product_Pic_Info) {
        this.product_Pic_Info = product_Pic_Info;
    }

    @Override
    public String toString() {
        return "Product_Info{" +
                "product_id=" + product_id +
                ", product_code='" + product_code + '\'' +
                ", product_name='" + product_name + '\'' +
                ", brand_id=" + brand_id +
                ", one_category_id=" + one_category_id +
                ", two_category_id=" + two_category_id +
                ", three_category_id=" + three_category_id +
                ", price=" + price +
                ", publish_status=" + publish_status +
                ", audit_status=" + audit_status +
                ", weight=" + weight +
                ", color_type='" + color_type + '\'' +
                ", production_date=" + production_date +
                ", shelf_life=" + shelf_life +
                ", descript='" + descript + '\'' +
                ", indate=" + indate +
                ", modified_time=" + modified_time +
                ", product_pic_infos=" + product_pic_infos +
                ", warehouse_products=" + warehouse_products +
                ", warehouseProduct=" + warehouseProduct +
                ", product_Pic_Info=" + product_Pic_Info +
                '}';
    }

    public Integer getProduct_id() {
        return product_id;
    }
    public void setProduct_id(Integer product_id) {
        this.product_id = product_id;
    }
    public String getProduct_code() {
        return product_code;
    }
    public void setProduct_code(String product_code) {
        this.product_code = product_code;
    }
    public String getProduct_name() {
        return product_name;
    }
    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }
    public Integer getBrand_id() {
        return brand_id;
    }
    public void setBrand_id(Integer brand_id) {
        this.brand_id = brand_id;
    }
    public Integer getOne_category_id() {
        return one_category_id;
    }
    public void setOne_category_id(Integer one_category_id) {
        this.one_category_id = one_category_id;
    }
    public Integer getTwo_category_id() {
        return two_category_id;
    }
    public void setTwo_category_id(Integer two_category_id) {
        this.two_category_id = two_category_id;
    }
    public Integer getThree_category_id() {
        return three_category_id;
    }
    public void setThree_category_id(Integer three_category_id) {
        this.three_category_id = three_category_id;
    }
    public double getPrice() {
        return price;
    }
    public void setPrice(double price) {
        this.price = price;
    }
    public Integer getPublish_status() {
        return publish_status;
    }
    public void setPublish_status(Integer publish_status) {
        this.publish_status = publish_status;
    }
    public Integer getAudit_status() {
        return audit_status;
    }
    public void setAudit_status(Integer audit_status) {
        this.audit_status = audit_status;
    }
    public double getWeight() {
        return weight;
    }
    public void setWeight(double weight) {
        this.weight = weight;
    }
    public String getColor_type() {
        return color_type;
    }
    public void setColor_type(String color_type) {
        this.color_type = color_type;
    }
    public Date getProduction_date() {
        return production_date;
    }
    public void setProduction_date(Date production_date) {
        this.production_date = production_date;
    }
    public Integer getShelf_life() {
        return shelf_life;
    }
    public void setShelf_life(Integer shelf_life) {
        this.shelf_life = shelf_life;
    }
    public String getDescript() {
        return descript;
    }
    public void setDescript(String descript) {
        this.descript = descript;
    }
    public Date getIndate() {
        return indate;
    }
    public void setIndate(Date indate) {
        this.indate = indate;
    }
    public Date getModified_time() {
        return modified_time;
    }
    public void setModified_time(Date modified_time) {
        this.modified_time = modified_time;
    }
    public List<Product_Pic_Info> getProduct_pic_infos() {
        return product_pic_infos;
    }
    public void setProduct_pic_infos(List<Product_Pic_Info> product_pic_infos) {
        this.product_pic_infos = product_pic_infos;
    }
    public List<Warehouse_Product> getWarehouse_products() {
        return warehouse_products;
    }
    public void setWarehouse_products(List<Warehouse_Product> warehouse_products) {
        this.warehouse_products = warehouse_products;
    }

    public Product_Info(String product_code, String product_name, Integer brand_id, Integer one_category_id,
                        Integer two_category_id, Integer three_category_id, double price, Integer publish_status,
                        Integer audit_status, double weight, String color_type, Date production_date, Integer shelf_life,
                        String descript, Date indate, Date modified_time, List<Product_Pic_Info> product_pic_infos,
                        List<Warehouse_Product> warehouse_products) {
        super();
        this.product_code = product_code;
        this.product_name = product_name;
        this.brand_id = brand_id;
        this.one_category_id = one_category_id;
        this.two_category_id = two_category_id;
        this.three_category_id = three_category_id;
        this.price = price;
        this.publish_status = publish_status;
        this.audit_status = audit_status;
        this.weight = weight;
        this.color_type = color_type;
        this.production_date = production_date;
        this.shelf_life = shelf_life;
        this.descript = descript;
        this.indate = indate;
        this.modified_time = modified_time;
        this.product_pic_infos = product_pic_infos;
        this.warehouse_products = warehouse_products;
    }
    public Product_Info() {
        super();
        // TODO Auto-generated constructor stub
    }


}
